import java.util.Scanner;

public class MtBullerAdmin {
    public static void main(String[] args) {
        MtBullerResort resort = new MtBullerResort();
        Scanner scanner = new Scanner(System.in);
        boolean exit = false;

        while (!exit) {
            System.out.println("\n------------------------\n");
            System.out.println("1. Display all accommodations");
            System.out.println("2. Display available accommodations");
            System.out.println("3. Add customer");
            System.out.println("4. List customers");
            System.out.println("5. Create a package");
            System.out.println("6. List packages");
            System.out.println("7. Add a lift pass to package");
            System.out.println("8. Add lesson fees to package");
            System.out.println("9. Save packages to file");
            System.out.println("10. Read packages from file");
            System.out.println("11. Quit");
            System.out.print("Enter your choice: ");
            int choice = scanner.nextInt();

            switch (choice) {
                case 1:
                    resort.displayAllAccommodations();
                    break;
                case 2:
                    resort.displayAvailableAccommodations();
                    break;
                case 3:
                     resort.addCustomer();
                    break;
                case 4:
                    resort.listCustomers();
                    break;
                case 5:
                    resort.addPackage();
                    break;
                case 6:
                    resort.listPackages();
                    break;
                case 7:
                    resort.addLiftPassToPackage();
                    break;
                case 8:
                    resort.addLessonFeesToPackage();
                    break;
                case 9:
                    resort.savePackage();
                    break;
                case 10:
                    resort.readPackage();
                    break;
                case 11:
                    exit = true;
                    break;
                default:
                    System.out.println("Invalid choice. Please enter a number between 1 and 11.");
            }
        }
        scanner.close();
    }
}

